package exp4.test3;

/**
 * Created by 春旺 on 2017/11/23.
 */
public class Edge<T> {

        //边一端的顶点
         T formV;
        //另一端的顶点
          T endV;
        //两点之间是否有连接
        int weight=0;
    //边的初始化：输入边所连接的两个顶点
        public  Edge(T v1, T v2,int weight){
            formV = v1;
            endV = v2;
            this.weight=weight;
        }
    };


